MRG Manager Copyright (C) NoOneee 
  Version 1.1

  This program comes with ABSOLUTELY NO WARRANTY.
  This is free software, and you are welcome to redistribute it
  under certain conditions; See the LICENSE file for more details.

Parameters between '< >' are optional.

MRG files that were inside other MRG files need the -no-sector-align parameter. 
i.e. only the outmost MRG(most external) is sector-aligned, 
use -no-sector-aligned to handle any MRG that was inside it.


Extraction:
  mrg x mrg_file.bin output_folder <-no-sector-align> <fileNum1> <fileNum2>
  If you don't specify which files you want to extract, everything will get
  extracted.
  

Creation:
  mrg c mrg_file.bin input_folder <-no-sector-align> <-no-linking> NUM_OF_FILES
  creates a new MRG file from files file00000.bin to fileNUM_OF_FILES-1.bin
  If -no-linking is specified, duplicate files aren't linked together 
  (results in a bigger MRG file).


File Replacement:
  mrg r mrg_file.bin input_folder <-no-sector-align> file1 <file2> <file3> ...
  Replaces files in the MRG file.
  Keeps the original file positions and file table untouched,
  except for the replaced file.
  Fails if the replacement file is much bigger than the original file
  (i.e. replacing it causes file overlap).
  For sector-aligned MRG, this usually requires:
   Math.ceil(oldFileSize/2048) >= Math.ceil(newFileSize/2048)
  
  For no-sector-aligned MRG, this usually requires:
   oldFileSize >= newFileSize


Examples:
  Extract all files from mrg_file.bin to mrg_folder:
    mrg x mrg_file.bin mrg_folder

  Extract files file00010 and file00050 from mrg_file.bin:
    mrg x mrg_file.bin mrg_folder 10 50

  Replace file00010 and file00050 from mrg_folder into mrg_file.bin:
    mrg r mrg_file.bin mrg_folder 10 50

  Create a new MRG file with files ranging from file00000.bin to file00999.bin 
  located at mrg_folder:
    mrg c mrg_file.bin mrg_folder 1000



CHANGELOG:
V1.1    Added support for MRG files that are not sector aligned. 
        Those are MRG files that are inside other MRG files.
        Always use -no-sector-align to deal with them!
V1.0a   Corrected extraction command line parameters in the instructions
v1.0    Initial Release
